import request from '@/utils/request'

// 查询设备_分组列表
export function listDeviceGroup(query) {
  return request({
    url: '/business/devicegroup/list',
    method: 'get',
    params: query
  })
}

// 查询设备_分组详细
export function getDeviceGroup(id) {
  return request({
    url: '/business/devicegroup/' + id,
    method: 'get'
  })
}

// 新增设备_分组
export function addDeviceGroup(data) {
  return request({
    url: '/business/devicegroup',
    method: 'post',
    data: data
  })
}

// 修改设备_分组
export function updateDeviceGroup(data) {
  return request({
    url: '/business/devicegroup',
    method: 'put',
    data: data
  })
}

// 删除设备_分组
export function delDeviceGroup(data) {
  return request({
    url: '/business/devicegroup/unBound' ,
    method: 'put',
    data: data
  })
}

// 导出设备_分组
export function exportDeviceGroup(query) {
  return request({
    url: '/business/devicegroup/export',
    method: 'get',
    params: query
  })
}